package com.lipy.springootrabbitmq.config.manage;

import com.lipy.springootrabbitmq.config.RabbitMQConfig;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: lipy
 * @create: 2020-09-22 22:26
 **/
@Component
public class ManageSender {
    @Autowired
    RabbitTemplate rabbitTemplate;

    public void send(){
        rabbitTemplate.convertAndSend("manage","manage message");
    }
}
